package entityDAOs;

import java.util.List;
import java.util.Set;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Itens;

/**
 * A data access object (DAO) providing persistence and search support for Itens
 * entities. Transaction control of the save(), update() and delete() operations
 * can directly support Spring container-managed transactions or they can be
 * augmented to handle user-managed Spring transactions. Each of these methods
 * provides additional information for how to configure it for the desired type
 * of transaction control.
 * 
 * @see entities.Itens
 * @author MyEclipse Persistence Tools
 */

public class ItensDAO extends BaseHibernateDAO<Itens,java.lang.Integer> {
	private static final Logger log = LoggerFactory.getLogger(ItensDAO.class);
	// property constants
	public static final String FLAG_VISIBLE = "flagVisible";
	public static final String IMG2DITEM = "img2ditem";
	public static final String MIN_LEVEL = "minLevel";
	public static final String FLAG_PRIZE = "flagPrize";
	public static final String NTIMES_USE = "ntimesUse";
	public static final String GLOBAL_LEVEL = "globalLevel";

	
	public List<Itens> findByFlagVisible(Object flagVisible) {
		return findByProperty(FLAG_VISIBLE, flagVisible);
	}

	public List<Itens> findByImg2ditem(Object img2ditem) {
		return findByProperty(IMG2DITEM, img2ditem);
	}

	public List<Itens> findByMinLevel(Object minLevel) {
		return findByProperty(MIN_LEVEL, minLevel);
	}

	public List<Itens> findByFlagPrize(Object flagPrize) {
		return findByProperty(FLAG_PRIZE, flagPrize);
	}

	public List<Itens> findByNtimesUse(Object ntimesUse) {
		return findByProperty(NTIMES_USE, ntimesUse);
	}

	public List<Itens> findByGlobalLevel(Object globalLevel) {
		return findByProperty(GLOBAL_LEVEL, globalLevel);
	}

}